<?php
/**
 * Bài 1: Viết hàm trong jQuery
 * User: User
 * Date: 6/10/13
 * Time: 3:53 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<!doctype html>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>JS Training</title>
    <script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
    <link type="text/css" href="../css/2.css" media="screen" rel="stylesheet">
</head>
<body>
<div id="bound">
    <div id="box"></div>
</div>
</body>
</html>
<script type="text/javascript">
    $(function () {
        $('#box').click(function() {
            $(this).animate({
                "left" : "580px"
            }, 3000)
        });
    });
</script>